#encoding:utf-8
# @Time : 2021/9/2 23:44 
# @Author : 锦衣大镖客
# @File : TestDataUtil.py 
# @Software: PyCharm
# desc:
from common.ExcelUtils import Excel_Utils

class TestDataUtil():

    def __init__(self,test_datapath,sheetName):
        self.data=Excel_Utils(test_datapath,sheetName).get_sheet_data()
    def get_test_data(self):
        shet={}
        for row in self.data:
            shet.setdefault(row["测试用例编号"],[]).append(row)
        return shet
if __name__ == '__main__':
    tdu=TestDataUtil("testcase_infos.xlsx","Sheet1")
    for i,j in tdu.get_test_data().items():
        print(i,":",j)
